package jxl;

import java.io.*;

/**
 * 读取Excel
 * @author Administrator
 *
 */
public class ReadXLS {
	public static void main(String args[]) {
		Workbook book =null;
		String filename="C:/测试.xls";
		try {
			book = Workbook.getWorkbook(new File(filename));
			// 获得第一个工作表对象
			Sheet sheet = book.getSheet(0);
			// 得到第一列第一行的单元格
			Cell cell1 = sheet.getCell(0, 0);
			System.out.println(cell1.getContents().trim());
		} catch (Exception e) {
			e.printStackTrace();
		}finally{
			JxlUtil.closeQuietly(book);
		}
	}
}
